<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="text">
    <input type="text">
    <input type="text">

</body>

<script src="js/jquery.min.js"></script>
<script>
    $(() => {
        //获取input的个数
        console.log($('input').size());

        //each操作
        $('input').each((index, item) => {
            console.log(index, item);
        });
    })
</script>

</html>